package com.ctshk.rpc.train.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ctshk.common.model.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 火车产品加幅策略规则表
 * </p>
 *
 * @author 彭柳霖
 * @since 2021-03-15
 */
@Data
@TableName("t_train_product_increase_strategy_rule")
@ApiModel(value="TrainProductIncreaseStrategyRule对象", description="火车产品加幅策略规则表")
public class TrainProductIncreaseStrategyRule implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "加幅策略id")
    private Long increaseStrategyId;

    @ApiModelProperty(value = "价格类型")
    private Integer priceType;

    @ApiModelProperty(value = "价格")
    private BigDecimal price;

    @ApiModelProperty(value = "可售类型")
    private Integer saleableType;

    @ApiModelProperty(value = "最大可售数量")
    private Integer saleableNumber;

    @ApiModelProperty(value = "已售数量")
    private Integer soldNumber;

    @ApiModelProperty(value = "自定义id")
    private Long customId;

    private transient int Stock;
}
